package ffmvc.model;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.ResultSetExtractor;

public class PlayerExtractor implements ResultSetExtractor<Player> {
	public Player extractData(ResultSet rs) throws SQLException {
		Player person = new Player();
		person.setName(rs.getString(1));
		person.setId(rs.getString(2));
		person.setTeamId(rs.getString(3));
		person.setPosition(rs.getString(4));
		return person;
	}
}
